<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BUISApp
 *
 * @author jianfeng
 */
class BUIServiceApp extends BUINode {
    
    public function __construct($node = NULL) {
        parent::__construct($node);
        $this->sApp = $node;
    }

    //put your code here

    public function render($data = null) {
        //$this->gotoScreen('ServiceApp', $config);
        $sf = $this->getStartScreenFlow();
        $screen = $this->getStartScreen();
        $this->renderNode($sf, $screen, $data);
    }

    public function renderOperation($operation, $data = null) {
        $this->setActiveOperation($operation);
        $sf = $operation->getUIManager()->getStartScreenFlow();
        $screen = $operation->getUIManager()->getStartScreen();
        $this->renderNode($sf, $screen, $data);
    }

    public function getOperationMenuItems($operation, $menuName) {
        
    }

    protected function registerMenus($style = NULL) {
        
    }

    public function getUrl($data) {
        return $this->buildUrl($this->service->getId(), $this->sApp->getId(), NULL, $data);
    }
    
    protected function getStartScreenFlow()
    {}
    
    protected function getStartScreen()
    {
        return 'BScreenServiceApp';
    }

}

?>
